package com.youlai.boot.system.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.hibernate.validator.constraints.Length;

/**
 * 统计表单对象
 *
 * @author lwb
 * @since 2025-07-01 22:00
 */
@Getter
@Setter
@Schema(description = "统计表单对象")
public class SpotCountForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Long id;

    @Schema(description = "旅行社Id")
    private Long deptId;

    @Schema(description = "旅行社名称")
    @Length(max=64, message="旅行社名称长度不能超过64个字符")
    private String deptName;

    @Schema(description = "分类Id")
    private Long categoryId;

    @Schema(description = "分类名称")
    @Length(max=64, message="分类名称长度不能超过64个字符")
    private String categoryName;

    @Schema(description = "操作人Id")
    @Length(max=64, message="操作人Id长度不能超过64个字符")
    private String userId;

    @Schema(description = "操作人")
    @Length(max=64, message="操作人长度不能超过64个字符")
    private String userName;

    @Schema(description = "操作时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime operateTime;

    @Schema(description = "操作数量")
    private Integer num;

    @Schema(description = "操作类型")
    private Integer operateType;


}
